<?php

namespace App\BO\OrderStatus\Events;

use App\BO\OrderStatus\Meta\UserApplyRefundInfo;
use App\Entities\OrderEntity;

/**
 * 用户申请退款
 * Class OrderUserApplyRefundEvent
 * @package App\BO\OrderStatus\Events
 */
class OrderUserApplyRefundEvent extends ABaseOrderEvent
{
    /**
     * @var UserApplyRefundInfo
     */
    protected $userApplyRefundInfo;

    public function __construct(OrderEntity $orderEntity, UserApplyRefundInfo $userApplyRefundInfo)
    {
        parent::__construct($orderEntity);
        $this->userApplyRefundInfo = $userApplyRefundInfo;
    }

    /**
     * @return UserApplyRefundInfo
     */
    public function getUserApplyRefundInfo(): UserApplyRefundInfo
    {
        return $this->userApplyRefundInfo;
    }
}
